num = input("请输入身份证号码") #450820200410080264
year = num[6:10]
m = num[10:12]
day = num[12:14]

sex = int(num[16])

if sex % 2 == 0:
    s = "女"
else:
    s = "男"

print(f"您的生日是:{year}年{m}月{day}日，性别是{s}")
